package com.ruoyi.map.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 保护鱼种管理对象 fh_map_fishprotection
 * 
 * @author ruoyi
 * @date 2024-11-13
 */
@Data
@ApiModel(value = "FhMapFishprotection",description = "保护鱼种实体体")
public class FhMapFishprotection extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 鱼种id */
    @ApiModelProperty("鱼种id")
    @Excel(name = "鱼种id")
    private Long fishId;

    @ApiModelProperty("waterId")
    private Long waterId;

    private String waterName;

    /** 鱼种名称 */
    @ApiModelProperty("鱼种名称")
    @Excel(name = "鱼种名称")
    private String fishName;

    /** 鱼种图片 */
    @ApiModelProperty("鱼种图片")
    @Excel(name = "鱼种图片")
    private String fishImage;

    /** 状态 */
    @Excel(name = "状态")
    private String status;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date crateTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setFishId(Long fishId) 
    {
        this.fishId = fishId;
    }

    public Long getFishId() 
    {
        return fishId;
    }
    public void setFishName(String fishName) 
    {
        this.fishName = fishName;
    }

    public String getFishName() 
    {
        return fishName;
    }
    public void setFishImage(String fishImage) 
    {
        this.fishImage = fishImage;
    }

    public String getFishImage() 
    {
        return fishImage;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setCrateTime(Date crateTime) 
    {
        this.crateTime = crateTime;
    }

    public Date getCrateTime() 
    {
        return crateTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("fishId", getFishId())
            .append("fishName", getFishName())
            .append("fishImage", getFishImage())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("crateTime", getCrateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
